package com.luoxiang.socialandroid.utils;

import android.content.Context;
import android.util.AttributeSet;

import cn.jzvd.JzvdStd;

public class JZVideoPlayerStandardLoop extends JzvdStd {
    public Boolean isLoop = true;
    public JZVideoPlayerStandardLoop(Context context) {
        super(context);
    }

    public JZVideoPlayerStandardLoop(Context context, AttributeSet attrs) {
        super(context, attrs);
    }

    @Override
    public void onStateAutoComplete() {
        super.onStateAutoComplete();
        if(isLoop){
            startVideo();
        }
    }

    @Override
    public void setAllControlsVisiblity(int topCon, int bottomCon, int startBtn, int loadingPro, int posterImg, int bottomPro, int retryLayout) {
        super.setAllControlsVisiblity(GONE, GONE, GONE, GONE, GONE, GONE, GONE);
    }
}
